<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div id="content">
	<div class="box">
		<div class="box-head">
			<h2 class="left">职位列表</h2>
			<div class="right">
				<label>查询名称</label> <input type="text" class="field small-field" />
				<input type="submit" class="button" value="查询" />
				<a id="add" class="button" style="margin-left: 10px">新增</a>
			</div>
		</div>
		<div class="table">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<th>所属部门</th>
					<th>职位名称</th>
					<th>人员姓名</th>
					<th>登录名</th>
					<th>当前状态</th>
					<th>最后登录时间</th>
					<th width="110" class="ac">操作</th>
				</tr>
				<c:forEach items="${pager.datas}" var="item" varStatus="status">
					<tr class="<c:if test="${status.index % 2 == 0 }">odd</c:if>">
						<td><h3>${item.position.dept.name }</h3></td>
						<td>${item.position.name }</td>
						<td>${item.name }</td>
						<td>${item.loginname }</td>
						<td>${item.state }</td>
						<td>${item.lastlogin }</td>
						<td><a
							href="${request.contextPath }/personal/delete?id=${item.id }"
							class="ico del">删除</a> <a
							href="${request.contextPath }/personal/edit?id=${item.id }"
							class="ico edit">编辑</a></td>
					</tr>
				</c:forEach>
			</table>
			<div class="pagging">
				<div class="left">当前1-10 &nbsp;共44条记录/5页</div>
				<div class="right">
					每页<select>
						<option value="10">10</option>
						<option value="20">20</option>
						<option value="30">30</option>
						<option value="50">50</option>
					</select>条 <a href="#">上一页</a> <a href="#">1</a> <a href="#">2</a> <a
						href="#">3</a> <a href="#">4</a> <span>...</span> <a href="#">245</a>
					<a href="#">下一页</a>
				</div>
			</div>
		</div>
	</div>
</div>